package com.java.mybatis.entity;

import java.io.Serializable;

/**
 * (Ordergoods)实体类
 * 注（订单商品表 只负责显示 不进行入库操作）
 * @author makejava
 * @since 2021-01-15 17:10:28
 */
public class Ordergoods implements Serializable {
    private static final long serialVersionUID = -37846806930492231L;

    private Integer ordergoodsId;//订单商品id

    private String ordergoodsOrder; //商品订单(随便写)

    private Order order; //所属订单批号(关联订单表id)

    private String ordergoodsName;//商品名称

    private Integer ordergoodsNumber;//商品数量

    private Integer ordergoodsState;//状态

    private Integer ordergoodsCode;//软删除

    private String ordergoodsMark;//备用字段

    private String ordergoodsWeight;

    private String userName;//下单的用户名(随便写)

    private String userPhone;//下单用户的电话号码(随便写)

    private String userAddress;//下单用户的地址(要写我们仓库配送的区域其中一个 例如沙坪坝区)

    private Goodstype goodstype;

    @Override
    public String toString() {
        return "Ordergoods{" +
                "ordergoodsId=" + ordergoodsId +
                ", ordergoodsOrder='" + ordergoodsOrder + '\'' +
                ", order=" + order +
                ", ordergoodsName='" + ordergoodsName + '\'' +
                ", ordergoodsNumber=" + ordergoodsNumber +
                ", ordergoodsState=" + ordergoodsState +
                ", ordergoodsCode=" + ordergoodsCode +
                ", ordergoodsMark='" + ordergoodsMark + '\'' +
                ", ordergoodsWeight='" + ordergoodsWeight + '\'' +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", goodstype=" + goodstype +
                ", location=" + location +
                '}';
    }

    public Integer getOrdergoodsId() {
        return ordergoodsId;
    }

    public void setOrdergoodsId(Integer ordergoodsId) {
        this.ordergoodsId = ordergoodsId;
    }

    public String getOrdergoodsOrder() {
        return ordergoodsOrder;
    }

    public void setOrdergoodsOrder(String ordergoodsOrder) {
        this.ordergoodsOrder = ordergoodsOrder;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public String getOrdergoodsName() {
        return ordergoodsName;
    }

    public void setOrdergoodsName(String ordergoodsName) {
        this.ordergoodsName = ordergoodsName;
    }

    public Integer getOrdergoodsNumber() {
        return ordergoodsNumber;
    }

    public void setOrdergoodsNumber(Integer ordergoodsNumber) {
        this.ordergoodsNumber = ordergoodsNumber;
    }

    public Integer getOrdergoodsState() {
        return ordergoodsState;
    }

    public void setOrdergoodsState(Integer ordergoodsState) {
        this.ordergoodsState = ordergoodsState;
    }

    public Integer getOrdergoodsCode() {
        return ordergoodsCode;
    }

    public void setOrdergoodsCode(Integer ordergoodsCode) {
        this.ordergoodsCode = ordergoodsCode;
    }

    public String getOrdergoodsMark() {
        return ordergoodsMark;
    }

    public void setOrdergoodsMark(String ordergoodsMark) {
        this.ordergoodsMark = ordergoodsMark;
    }

    public String getOrdergoodsWeight() {
        return ordergoodsWeight;
    }

    public void setOrdergoodsWeight(String ordergoodsWeight) {
        this.ordergoodsWeight = ordergoodsWeight;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public Goodstype getGoodstype() {
        return goodstype;
    }

    public void setGoodstype(Goodstype goodstype) {
        this.goodstype = goodstype;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    private Location location;

}